From: Alessandro Bono Date: Fri, 20 Feb 2026 22:57:14 +0000 (+0100) Subject: environment: Use replaceAll() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~28^2~4^2^2~19 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=78070b14f17dbb59145837bb37a95cdee7a4aa9d;p=gnome-shell.git environment: Use replaceAll() The replace() function expects two parameters, likely the third one was ignored. Use replaceAll() to replace all the occurrences, not just the first one. Fixes: 007b6ca2e ("environment: Add convenience method for implicit animations") Part-of: (cherry picked from commit 10cd1a875ddaff97b0d2220d2ad7f650da8976df) --- diff --git a/js/ui/environment.js b/js/ui/environment.js index 3ebe8e261..f2dc69eef 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -149,7 +149,7 @@ function _easeActor(actor, params) { const callback = _makeEaseCallback(params, cleanup); // cancel overwritten transitions - let animatedProps = Object.keys(params).map(p => p.replace('_', '-', 'g')); + let animatedProps = Object.keys(params).map(p => p.replaceAll('_', '-')); animatedProps.forEach(p => actor.remove_transition(p)); if (easingDuration > 0 || !isReversed)